package com.hxgz.steel.dao;

import com.hxgz.steel.dto.ExtendMerchantDto;
import com.hxgz.steel.dto.GoodsTimeDto;
import com.hxgz.steel.domain.Merchant;
import com.hxgz.steel.domain.MerchantDto;
import com.hxgz.steel.dto.HotStore;
import com.hxgz.steel.dto.ProductStoreDto;
import java.util.HashMap;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("MerchantMapper")
public interface MerchantMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Merchant record);

    int insertSelective(Merchant record);

    Merchant selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Merchant record);

    int updateByPrimaryKey(Merchant record);

    ExtendMerchantDto getMerchantByuserId(Long userId);

    List<Merchant> selectAll();

    Integer getAllMerchantNum();

    Integer getMerchantNumByMon();

    List<HotStore> horMerchant();

    ProductStoreDto getStoreByProduct(@Param("merchantId")Long merchantId);

  List<MerchantDto> checkBackendMerchant(HashMap<Object, Object> map);

    List<HotStore> getMerchantByKind(@Param("categoryId") Integer categoryId,@Param("pageSize") Integer pageSize);

    com.hxgz.steel.dto.MerchantDto selectOneByPrimaryKey(Long merchantId);

    Integer getRoleStatusById(long userId);

    int updateByPrimary( Merchant merchant);
}